package com.ssm.zyn.service.impl;

import com.ssm.zyn.dao.TestAnswerMapper;
import com.ssm.zyn.eo.TestAnswerEOpage;
import com.ssm.zyn.model.TestAnswer;
import com.ssm.zyn.service.TestAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 实现业务及流程接口当中的内容
 */
@Service
public class TestAnswerServiceImpl implements TestAnswerService {
    @Autowired
    private TestAnswerMapper testAnswerMapper;
    @Override
    public int AddTestAnswer(TestAnswer testAnswer) {
        int returnInt=0;
        returnInt=testAnswerMapper.insertTestAnswer(testAnswer);
        return returnInt;
    }

    @Override
    public List<TestAnswerEOpage> getWhereAll(TestAnswerEOpage testAnswerEOpage) {
        List<TestAnswerEOpage> list=testAnswerMapper.getWhereAll(testAnswerEOpage);
        return list;
    }
}
